package com.pro_one.dao;

import com.github.pagehelper.Page;
import com.pro_one.entity.QueryPageBeanQueryString;
import com.pro_one.pojo.Order;
import com.pro_one.pojo.OrderFitness;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderDao {

    void add(Order order);

    List<Order> findByOrder(Order order);

    Map findById(Integer id);

    int getOrderCountByDate(String today);

    int getTodayVisitsNumber(String today);

    int getOrderCountAfterDate(String date);

    int getVisitsNumberAfterDate(String thisWeekMonday);

    OrderFitness findByIdOrder(Integer id);

    Page<Order> pageQuery(Map<String, Object> queryString);

    Map findByOrderId(Integer id);

    List<Integer> findSetmealIdsByOrderId(Integer id);

    void delete(Integer id);

    Order findByOid(Integer id);

    void setOrderStatus1(Integer id);

    void setOrderStatus2(Integer id);

    void forbidden(Integer id);

    void update(Order order);

    Integer findMemberIdById(Integer id);

    void addOrderIdAndAddressId(@Param("orderId") Integer id, @Param("addressId") Integer orderaddressId);
}
